Skip to content

[#516] Set story title character limit to 60 characters#522

Merged
realproject7 merged 1 commit intomainfrom
task/516-title-char-limit
Mar 25, 2026
Merged

[#516] Set story title character limit to 60 characters#522
realproject7 merged 1 commit intomainfrom
task/516-title-char-limit

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Added 60-character max validation on the create storyline title input using maxLength and .slice(0, 60)
  • Added character counter below the title field showing {length} / 60
  • Submission is prevented when title exceeds 60 characters (validation gates the submit button)
  • Bumped version to 0.1.1

Test plan

  • Open /create page, type a storyline title — counter should show X / 60
  • Paste text longer than 60 chars — input should truncate at 60
  • Verify submit button is disabled when title is empty
  • Verify existing "Add Plot" tab chapter title (100-char limit) still works

Fixes #516

🤖 Generated with Claude Code

- Enforce max 60 chars on new storyline title input (maxLength + slice)
- Show character counter (e.g. "42 / 60") below title field
- Prevent submission when title exceeds limit
- Bump version to 0.1.1

Fixes #516

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Mar 25, 2026 7:54am

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APPROVE — clean, focused implementation. Double enforcement (maxLength + slice) is solid. Character counter and validation logic are correct. Minor nit: MAX_TITLE_LENGTH could be a module-level constant instead of inside the component body, but not blocking.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

This PR meets issue #516: the create storyline title input now enforces a 60-character limit, shows a live counter, and keeps submission blocked when the title is invalid or empty. The change is minimal, follows the existing title-input pattern on the page, and includes the required patch version bump.

Findings

  • None.

Decision

Approving because the diff satisfies the acceptance criteria without introducing scope creep. CI checks are still pending, but that is not blocking this code review.

@realproject7 realproject7 merged commit 0a80d93 into main Mar 25, 2026
5 checks passed
@realproject7 realproject7 deleted the task/516-title-char-limit branch March 25, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set story title character limit to 60 characters

2 participants